package com.whjfxx.terminal.biz.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
public class OrgParam {

    private Long id;

    @NotNull(message = "参数错误,parentId不能为空")
    private Long parentId;

    @NotBlank(message = "机构编码不能为空")
    @Length(max = 64, message = "机构编码长度不能超过64")
    private String organizationCode;

    @NotBlank(message = "机构名称不能为空")
    @Length(max = 64, message = "机构名称长度不能超过64")
    private String organizationName;

    @Length(max = 100, message = "说明不能超过100个字")
    private String remark;

}
